import { Button } from 'antd'
import React from 'react'
import { useNavigate, useParams } from 'react-router-dom'
import styles from './index.module.less'

const Note = () => {
  const navigate = useNavigate()
  const params = useParams()
  console.log('🚀 ~ file: index.tsx ~ line 10 ~ Home ~ params', params)
  return (
    <div className={styles.noteContainer}>
      <div>
        <Button
          onClick={() => {
            navigate('/home', { state: { name: 'amin' } })
          }}
        >
          to Home
        </Button>
      </div>
      <div>Note</div>
    </div>
  )
}

export default Note
